import request from '@/utils/request'

// 查询房屋详情列表
export function listHouseInfo(query) {
  return request({
    url: '/system/houseInfo/list',
    method: 'get',
    params: query
  })
}

// 查询房屋详情详细
export function getHouseInfo(houseId) {
  return request({
    url: '/system/houseInfo/' + houseId,
    method: 'get'
  })
}

// 新增房屋详情
export function addHouseInfo(data) {
  return request({
    url: '/system/houseInfo',
    method: 'post',
    data: data
  })
}

// 修改房屋详情
export function updateHouseInfo(data) {
  return request({
    url: '/system/houseInfo',
    method: 'put',
    data: data
  })
}

// 删除房屋详情
export function delHouseInfo(houseId) {
  return request({
    url: '/system/houseInfo/' + houseId,
    method: 'delete'
  })
}
